// Decompiled on 周六 2月 22 19:31:49 CST 2025 with Zomboid Decompiler v0.1.3 using Vineflower.
package zombie.core.secure;

import org.junit.Assert;
import org.junit.Test;

public class PZCryptTest extends Assert {
    @Test
    public void hash() {
        String string = PZcrypt.hash("123456");
        assertEquals("$2a$12$O/BFHoDFPrfFaNPAACmWpuPkOtwkznuRQ7saS6/ouHjTT9KuVcKfq", string);
    }

    @Test
    public void hashSalt() {
        String string0 = PZcrypt.hashSalt("1234567");
        String string1 = PZcrypt.hashSalt("1234567");
        assertNotEquals(string0, string1);
        boolean _boolean = PZcrypt.checkHashSalt(string0, "1234567");
        assertEquals(true, _boolean);
        _boolean = PZcrypt.checkHashSalt(string0, "1238567");
        assertEquals(false, _boolean);
        _boolean = PZcrypt.checkHashSalt(string1, "1234567");
        assertEquals(true, _boolean);
        _boolean = PZcrypt.checkHashSalt(string1, "dnfgdf;godf;ogdogi;");
        assertEquals(false, _boolean);
    }
}
